interface IPerson<T1, T2> {
    name: T1,
    age: T2
}
// 没有默认类型，必须写上类型
const p: IPerson<string, number> = {
    name: 'why',
    age: 18
}

// 2.默认类型
interface IPerson2<T1 = string, T2 = number> {
    name: T1,
    age: T2
}
const p2: IPerson2 = {
    name: 'why',
    age: 18
}

export { }